package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("t_mtTicket")
public class MtTicketBean implements Serializable {
    @TableId(value = "pk_mtTicketId",type = IdType.AUTO)
    private Integer ticketId;
    @TableField("t_movieName")
    private String movieName;
    @TableField("t_price")
    private Integer price;
    @TableField("t_number")
    private Integer number;

    public MtTicketBean() {
    }

    public MtTicketBean(String movieName, Integer price, Integer number) {
        this.movieName = movieName;
        this.price = price;
        this.number = number;
    }

    public MtTicketBean(Integer ticketId, String movieName, Integer price, Integer number) {
        this.ticketId = ticketId;
        this.movieName = movieName;
        this.price = price;
        this.number = number;
    }

    public Integer getTicketId() {
        return ticketId;
    }

    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "MtTicketBean{" +
                "ticketId=" + ticketId +
                ", movieName='" + movieName + '\'' +
                ", price=" + price +
                ", number=" + number +
                '}';
    }
}
